<template>
  <div class="box">
    <!-- 面包屑导航区 -->
    <el-breadcrumb separator-class="el-icon-arrow-right">
      <el-breadcrumb-item :to="{ path: '/home' }">首页</el-breadcrumb-item>
      <el-breadcrumb-item>生产过程控制</el-breadcrumb-item>
      <el-breadcrumb-item>生产操作员面板—操作</el-breadcrumb-item>
    </el-breadcrumb>
    <iframe src="./oooo.html" class="box"></iframe>
  </div>
</template>

<script>
import axios from "axios";
export default {
  data() {
    return {
      Operation: {
        order: "",
        opera: "",
        resource: "",
      },
      orderList: [],
      operaList: [],
      resourceList: [],
      orderDV:false,
      operaDV:false,
      resourceDV:false,
    };
  },
  methods: {
     orderchoice(){
        this.orderDV = true;
        this.$axios({
        headers: {
              "Content-Type":
                "application/x-www-form-urlencoded; charset=UTF-8",
            },
        method: "post",
        url: "/IE_MES/product_plan/shoporder_maintenance_findByPage.shtml",
        data: this.$qs.stringify({
              "pageSize":this.pageSize,
              "pageNow": this.pageNow,
            }),
      })
        .then((res) => {
          this.orderList = res.data.records;
          this.pageCount = res.data.pageCount;
          this.pageNow = res.data.pageNow;
          this.pageSize = res.data.pageSize;
          this.rowCount = res.data.rowCount;
        });
     },
     choiceEdit(row) {
      this.Operation.order = row.shoporder_no;
      this.orderDV = false;
     },
     operachoice() {
       this.operaDV = true;
        this.$axios({
        headers: {
              "Content-Type":
                "application/x-www-form-urlencoded; charset=UTF-8",
            },
        method: "post",
        url: "/IE_MES/workshop/operation_findByPage.shtml",
        data: this.$qs.stringify({
              "pageSize":this.pageSize,
              "pageNow": this.pageNow,
            }),
      })
        .then((res) => {
          this.operaList = res.data.records;
          this.pageCount = res.data.pageCount;
          this.pageNow = res.data.pageNow;
          this.pageSize = res.data.pageSize;
          this.rowCount = res.data.rowCount;
        });
     },
     choiceEdit2(row) {
      this.Operation.opera = row.operation_no;
      this.operaDV = false;
     },
     resourcechoice() {
       this.resourceDV = true;
        this.$axios({
        headers: {
              "Content-Type":
                "application/x-www-form-urlencoded; charset=UTF-8",
            },
        method: "post",
        url: "/IE_MES/workshop/operation_resource_findByPage.shtml",
        data: this.$qs.stringify({
              "pageSize":this.pageSize,
              "pageNow": this.pageNow,
            }),
      })
        .then((res) => {
          this.resourceList = res.data.records;
          this.pageCount = res.data.pageCount;
          this.pageNow = res.data.pageNow;
          this.pageSize = res.data.pageSize;
          this.rowCount = res.data.rowCount;
        });
     },
     choiceEdit3(row) {
      this.Operation.resource = row.operationResource_no;
      this.resourceDV = false;
     },
     formatDate(data) {
      var date = new Date(data);
      var YY = date.getFullYear() + "-";
      var MM =
        (date.getMonth() + 1 < 10
          ? "0" + (date.getMonth() + 1)
          : date.getMonth() + 1) + "-";
      var DD = date.getDate() < 10 ? "0" + date.getDate() : date.getDate();
      var hh =
        (date.getHours() < 10 ? "0" + date.getHours() : date.getHours()) + ":";
      var mm =
        (date.getMinutes() < 10 ? "0" + date.getMinutes() : date.getMinutes()) +
        ":";
      var ss =
        date.getSeconds() < 10 ? "0" + date.getSeconds() : date.getSeconds();
      return YY + MM + DD + " " + hh + mm + ss;
    }
}
};

</script>
<style lang="less">
.box{
  width: 100%;
  height: 95%;
  border-style: none;
}
.box{
  width: 100%;
  height: 100%;
}
</style>